<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
			<div class="alert alert-success">编辑商品品牌</div>
			<div class="form-group">
				<label for="exampleInputEmail1">品牌名称</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入品牌名称" value="{{$oldData['bname']}}"  name="bname">
			</div>
			<br />
			<script type="text/javascript" src="Public/jquery-1.8.2.min.js" charset="UTF-8"></script>
			<script type="text/javascript">
				$(function(){
					$(".img_img").click(function(){
						var str = '<label for="exampleInputEmail1">品牌LOGO</label><input id="exampleInputEmail1" type="file"  name="logo">';
						$("#box_box").html(str);
					})
				})
			</script>
			<div class="form-group" id="box_box">
				{{if value="$oldData['logo']"}}
					<img src="{{$oldData['logo']}}"/>
					<a href="javascript:;"  class="img_img">X</a>
					<input type="hidden" name="logo" value="{{$oldData['logo']}}" />
				{{else}}
					<label for="exampleInputEmail1">品牌LOGO</label><input id="exampleInputEmail1" type="file"  name="logo">
				{{endif}}
			</div>
			<br />
			<div id="">
				<label for="">是否热门</label>
				<br />
				<label class="checkbox checkbox-inline" for="checkbox1">
					<input id="checkbox1" class="custom-checkbox" type="checkbox" name="ishot" value="1" {{if value="$oldData['ishot'] == 1"}}checked{{endif}}>
					<span class="icons">
					<span class="icon-unchecked"></span>
					<span class="icon-checked"></span>
					</span>
				</label>
			</div>
			<br />
			<div class="form-group">
				<label for="exampleInputEmail1">品牌排序</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序" name="sort" value="{{$oldData['sort']}}">
			</div>
			<input type="hidden" name="bid" value="{{$_GET['bid']}}" />
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
